package tiMu_9;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<User> arrayList=new ArrayList<>();
        User a1=new User("张三","10086","123456",100);
        User a2=new User("李四","10010","123456",200);
        arrayList.add(a1);
        arrayList.add(a2);
        Bank bank= new Bank(arrayList);
        Thread t1=new Thread(bank);
        Thread t2=new Thread(bank);
        t1.setName("用户1");
        t2.setName("用户2");
        t1.start();
        t2.start();
    }
}
